package test2;

public class Employee  implements Cloneable{
	private String name;
    private int age;
    private boolean gender;
	private Company company;
    private double salary;
	public Employee(String name, int age, boolean gender, Company company, double salary) {
		super();
		this.name = name;
		this.age = age;
		this.gender = gender;
		this.company = company;
		this.salary = salary;
	}
	@Override
	public String toString() {
		return "Employee [name=" + name + ", age=" + age + ", gender=" + gender + ", company=" + company + ", salary="
				+ salary + "]";
	}
	
	public Object clone() {
		Employee o = null;
			try {
				o = (Employee)super.clone();
			} catch (CloneNotSupportedException e) {
				e.printStackTrace();
			}
		return o;
		} 
}
	

